<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Array</title>
    <script>
        let colors = ["red", "blue", "black"];
        alert(colors.toString());//red,blue,black
        alert(colors);//red,blue,black 接受字符串参数，后台会默认调用Array的toString方法
        alert(colors.valueOf())//red,blue,black 会调用数组的每一项的toString方法
        alert(colors.toLocaleString())//会调用数组的每一项的toLocaleString方法
        alert(colors.join("||"))//red||blue||black






    </script>
</head>
<body>
转换方法
</body>
</html>